package loginDemo;
	
import java.net.URL;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.stage.Stage;
import javafx.scene.Parent;
import javafx.scene.Scene;

public class Main extends Application {
	
	public static void main(String[] args) {
		launch(args);
	}
	
	@Override
	public void start(Stage stage) {
		try {
			URL url = getClass().getResource("Login.fxml");
			Parent root = FXMLLoader.load(url);		// fxml文件同包直接名字;不同包则/包名/文件名
			
			Scene scene = new Scene(root);
			scene.getStylesheets().add(getClass().getResource("Login.css").toExternalForm());
			stage.setScene(scene);
			stage.setTitle("简单的登录框");
			stage.show();   
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
